<div class="question-outer">
	<div class="search_result_list">
		<?php foreach ($questions as $question): ?>
		<div class="listview">
			<div class="left">
				<?php 
					echo $this->Html->image('unknown.png', 
					 		array('title' => 'avatar', 'border' => '0','class'=>'avatar32'));
				?>
			</div>
			<div class="right">
				<?php echo $this->Html->link(
	    				$question['Question']['title'],
						'/questions/view/'.$question['Question']['id'],
						array('escape' => false,'title' => $question['Question']['title'],'class'=>'list_title')
					);
					if($question['Question']['bestSource'] != null){
					 echo $this->Html->image('bestsource_green.png', 
					 		array('title' => $question['Question']['bestSource'], 'border' => '0','class'=>'best_source_img'));
					 
					}
				?><br />
				<span class="note">
					$.timeFormatSolr(<?php echo $question['Question']['since']; ?>)
					<?php if($question['Question']['anonymous'] != 1) { ?>
						, bởi 
						<?php echo $this->Html->link(
		    				$question['Question']['userId'],
							'/users/view/'.$question['Question']['userId'],
							array('escape' => false,'title' => $question['Question']['userId'],'class'=>'small-user dark_link')
						); ?>
					<?php } ?> 
					<?php //if($question['Question']['answer_count'] > 0 ) { ?>
						,<span class="count_vote">+<?php echo $question['Question']['vote']?></span> trả lời của 
						<?php echo $this->Html->link(
		    				$question['Question']['userId'],
							'/users/view/'.$question['Question']['userId'],
							array('escape' => false,'title' => $question['Question']['userId'],'class'=>'dark_link')
						);
						?>
				</span>
				<span class="_right">
					<?php //if($question['Question']['answer_count'] > 0 ) { ?>
						<span class="bold font11 green">?  trả lời</span> 
						<span class="font11 dark">Chưa được trả lời</span>
				</span>
				
			</div>
		</div>
    	<?php endforeach; ?>
    	<?php unset($question); ?>
	</div>
</div>
